package cn.cdeden.knowledge.domain;

public enum PortalConfigurationEnum {
    CONFIG_1(  "marketing-plans", "营销策划", "#1989fa"),
    CONFIG_2( "project", "工程管理", "#1989fa"),
    CONFIG_3("research", "项目研发", "#1989fa"),
    CONFIG_4("enterprise", "企业管理", "#1989fa");


    private final String icon;

    private final String name;

    private final String iconColor;

    PortalConfigurationEnum( String icon, String name, String iconColor) {
        this.icon = icon;
        this.name = name;
        this.iconColor = iconColor;
    }

    public SysPortalConfigure toSysPortalConfigure() {
        return new SysPortalConfigure()
                .setIcon(this.icon)
                .setName(this.name)
                .setIconColor(this.iconColor);
    }
}
